package com.service.khqy;

import com.bpms.common.CommonUtil;
import com.bpms.common.JdbcWorker;
import com.bpms.common.VO;
import com.bpms.common.VOL;
import com.bpms.esb.IService;

public class Modifypassword implements IService {

	public VO exec(VO arg0) {
		
		JdbcWorker j = null;
		VO vo = new VO();


		try {
			j=new JdbcWorker();
			
			VO v=new VO();
			v.setAttr("PASSWORD",arg0.getAttr("password"));
			
			VO k = new VO();
			k.voType = "ACCOUNTINFO";
			k.keyString = "ID";
			k.setAttr("ID",arg0.getAttr("id"));
			
			j.update(v, k);
			
			vo.setAttr("result", "1");
			vo.setAttr("msg", "修改密码成功");

		} catch (Exception e) {
			CommonUtil.debug("Modifypassword exception", e);

			vo.setAttr("result", "9999");
			vo.setAttr("msg", "获得签约错误");
		}
		return vo;
	}

	

}
